 package top.lyc829.zzl_android.logic.util;

import top.lyc829.zzl_android.logic.bean.BaseBean;

/**
 * @Author lyc
 * @create 2021-02-01 14:05
 * url常量
 */
public class Url {
    //public final static String BASE_URL = "https://nei.netease.com/api/apimock-v2/eb4ddec602ce65d98bd2a9c54d44d4e4";
    public final static String BASE_URL = "http://kalistar.cn:81";
    //public final static String BASE_URL = "http://192.168.43.219:81";
    public final static String BASE_URL_2 = "http://kalistar.cn:1235";
    public final static String BASE_URL_3 = "http://lyc829.top:8089";
    //public final static String BASE_URL_3 = "http://192.168.123.181:8089";
    //public final static String BASE_URL_3 = "http://10.0.2.2:8089";


    /**
     * 登录注册
     * *********************************************************************************************
     */
    public final static  String USER = BASE_URL + "/user";
    public final static String LOGIN    = USER + "/login";
    public final static String REGIST    = USER + "/register";
    public final static String SEND_VERIFY_CODE    = USER + "/send_verify_code";


    /**
     * 我的
     * *********************************************************************************************
     */
    public final static  String MY = BASE_URL_2 + "/my";

    // 根据token获取用户信息（不全）
    public final static String GET_USER_INFO    = MY + "/Get_Info";

    // 根据id获取用户信息（全）
    public final static String GET_USER_ALL_INFO    = MY + "/Show_All_Info";
    // 获取关注用户的信息
    //public final static String GET_OTHERUSER_INFO = BASE_URL+"/get/my/info";
    public final static String GET_OTHERUSER_INFO =GET_USER_ALL_INFO;
    public final static String UPDATE_USER_INFO    = MY + "/Modify_Info";

    //获取用户粉丝
    public final static String GET_USER_FANS=MY+"/Fans_User_Info";
    public final static String GET_USER_FANS_NUMBER=MY+"/Fans_Relation_Info";
    //关注的基地、团队、用户
    public final static String GET_FOLLOW_BASELIST=MY+"/Relation_Base_Info";
    public final static String GET_FOLLOW_TEAMLIST=MY+"/Relation_Team_Info";
    public final static String GET_CONCERNED_NUMBER=MY+"/Relation_Info";
    public final static String GET_FOLLOW_USERLIST=MY+"/Relation_User_Info";
    //“我的”动态、游记、收藏
    public final static String GET_USER_DYNAMIC_LIST = BASE_URL + "/dynamic" + "/query_my";

    public final static String GET_USER_TRAVELS_LIST=MY+"/My_Travel_Info";


    /**
     * 首页
     * *********************************************************************************************
     */
    public final static String INDEX    = BASE_URL + "/index";

    public final static String GET_BANNERS    = INDEX + "/get_banners";



    /**
     * 基地
     * *********************************************************************************************
     */
    public final static String BASE    = BASE_URL + "/base";

    // 获取首页基地列表
    public final static String GET_INDEX_BASES_INFO    = BASE + "/get_index_bases_info";

    public final static String GET_BASE_DETAIL    = BASE + "/detail";
    // 根据当前基地id获取推荐基地
    public final static String GET_RECOMMEND_BASES    = BASE + "/get_recommend_bases";

    // 根据当前基地id获取推荐基地
    public final static String GET_RECOMMEND_TRAVELS    =BASE + "/get_recommend_travel";

    // 获取当前基地下的团队招募
    public final static String GET_TEAM_RECRUITS    = BASE + "/get_team_recruits";


    /**
     * 评论
     * *********************************************************************************************
     */
    private final static String _REVIEW    = BASE_URL + "/review";

    public final static String GET_SUPER_COMMENTS    = _REVIEW + "/query_one";

    public final static String GET_SON_COMMENTS    = _REVIEW + "/query_n";

    public final static String COMMENT    = _REVIEW + "/creat";

    // 删除评论
    public final static String DELETE_COMMENT    = _REVIEW + "/delete";

    // 根据评论id获取特定的评论
    public final static String GET_COMMENT_BY_ID    = _REVIEW + "/query_id";


    /**
     * 动态
     * *********************************************************************************************
     */
    public final static String DYNAMIC    = BASE_URL + "/dynamic";

    //创建动态
    public final static String ADD_DYNAMIC    = DYNAMIC + "/creat";

    public final static String GET_DYNAMICS = DYNAMIC + "/query_list";

    public final static String GET_DYNAMIC_BY_ID = DYNAMIC + "/query_id";

    public final static String SHARE_DYNAMIC = DYNAMIC + "/share";

    // 获取用户关注的用户们发的动态
    public final static String GET_FELLOW_DYNAMICS = DYNAMIC + "/query_relation";


    // 删除
    public final static String DELETE_DYNAMIC = DYNAMIC + "/delete";




    /**
     * 游记
     * *********************************************************************************************
     */
    public final static String TRAVEL = BASE_URL + "/travel";

    /**
     * 上传游记中的图片
     */
    public final static String UPLOAD_TRAVEL_PHOTOS = TRAVEL + "/upload_photos";


    /**
     * 点赞
     * *********************************************************************************************
     */
    public final  static String PRAISE = BASE_URL + "/praise";

    // 发送点赞
    public final  static String SEND_PRAISE = PRAISE + "/insert";

    // 取消点赞
    public final  static String SEND_UN_PRAISE = PRAISE + "/delete";

    // 查询点赞关系
    public final  static String GET_IS_PRAISE = PRAISE + "/query";


    /**
     * 关注
     * *********************************************************************************************
     */
    public final static String RELATION = BASE_URL_2 + "/relation";
    // 获取关注关系
    public final static String GET_ATTENTION_RELATIONSHIP    = RELATION + "/Get_Attention_Relationship";
    // 关注
    public final static String ATTENTION    = RELATION + "/Post_Attention";
    // 取消关注
    public final static String UN_ATTENTION    = RELATION + "/Post_Attention_Cancel";






    public final static String GET_PRAISE_RELATIONSHIP = BASE_URL + "/get_like_relationship";

    // 创建动态
    public final static String CREATE_DYNAMIC = BASE_URL + "/create_dynamic";


    public final static String GET_USER_CONCERNEDLIST=BASE_URL+"/get/my/relation";

    // 获取历史搜索
    public final static String SEARCH_HISTORY = BASE_URL_2 + "/search/Get_Search_Record_Info";

    /**
     * 删除搜索记录
     */
    public final static String ERASE_HISTORY = BASE_URL_2 + "/search/Post_Delete_Record_Info";


    /**
     * 消息
     * *********************************************************************************************
     */
    public final static String _MESSAGE = BASE_URL + "/message";
    // 首页右上角通知个数
    public final static String GET_MSG_NUMBERS = _MESSAGE + "/numbers";

    /**
     * 清除所有通知
     */
    public final static String CLEAR_ALL_MESSAGES = BASE_URL + "/clear_all_messages";


    /**
     * 团队
     * *********************************************************************************************
     */
    public final static String _TEAM = BASE_URL_2 + "/team";
    public final static String _TEAM_2 = BASE_URL_3 + "/team";

    // 获取团队列表
    public final static String GET_TEAMS = _TEAM + "/Team_Location_Recommend";

    public final static String GET_TEAMS_NO_SEARCH = _TEAM + "/Team_Recommend";

    public final static String GET_TEAMS_MY = _TEAM_2 + "/search";

    // 获取用户是否在团队中、团队id、申请状态(团队右上角显示+还是具体的团队)
    public final static String GET_IS_IN_TEAM = _TEAM_2 + "/Get_Bool_Team_Info";


    //创建团队时搜索基地
    public final static String SEARCH_BASES_IN_CREATE_TEAM = BASE_URL + "/bases_in_create_team";


    // 创建团队
    public final static String CREATE_TEAM = _TEAM + "/Team_Create";
    // 创建活动
    public final static String CREATE_ACTIVITY = _TEAM + "/Team_Create_Act";


    //获取团队页中的活动信息
    public final static String GET_ACTIVITY_IN_TEAM = _TEAM_2 + "/Get_Act_Info";


//     获取我的团队中团队基本信息
    public final static String GET_MY_TEAM_INFO = _TEAM + "/Get_Team_Info";

    //获取团队基本信息（其他团队）
    public final static String GET_TEAM_DETAIL = BASE_URL + "/team/message";


    // 获取团队成员信息
    public final static String GET_TEAM_USERS = _TEAM + "/Get_Team_Uesr_Info";

    public final static String GET_ACTIVITY_USERS = _TEAM + "/Get_Team_Uesr_Info";

    // 退出团队
    public final static String QUIT_TEAM = _TEAM_2 + "/exit";


    // 申请加入团队
    public final static String JOIN_TEAM = _TEAM_2 + "/Apply_Team";


    // 判断用户是否加入（申请）团队
    public final static String IS_JOIN_TEAM = _TEAM_2 + "/is_join_team";

    public final static String FINISH_TEAM = _TEAM_2 + "/finish";

    /**
     * 游记
     * *********************************************************************************************
     */
    public final static String _TRAVEL = BASE_URL + "/travel";

    //发布（更新）游记
    public final static String ADD_TRAVEL = _TRAVEL + "/add";

    // 获取动态页第二个tab游记卡片
    public final static String GET_TRAVELS = _TRAVEL + "/get_travels";


    // 游记详情
    public final static String GET_TRAVEL_DETAIL = _TRAVEL + "/get_travels_detail";





    public final static String DELETE_TRAVELS    = BASE_URL + "/youji/delete";

    /**
     * 获取通知页评论列表
     */
    public final static String GET_NOTICE_COMMENTS    = BASE_URL + "/message/review";

    /**
     * 获取通知页点赞列表
     */
    public final static String GET_NOTICE_PRAISES    = BASE_URL + "/message/praise";

    /**
     * 获取通知页用户关注列表
     */
    public final static String GET_NOTICE_FOLLOW_USERS    = BASE_URL + "/message/follow_users";

    public final static String GET_NOTICE_APPLY    = BASE_URL + "/message/apply";

    // 通过n级评论id找到一级评论id
    public final static String GET_TOP_COMMENT_BY_N = BASE_URL_3 + "/review/get_top_source_by_comment_id";




    /**
     * 处理用户加入团队的申请
     */
    public final static String HANDLE_APPLY    = _TEAM_2 + "/handle_apply";


    public final static String GET_NOTICE_SYSTEM    = BASE_URL + "/message/system";

    /**
     * 已读某条通知
     */
    public final static String READ_NOTICE    = BASE_URL + "/message/read";
    /**
     * 获取搜索详情
     */
    public final static String GET_SEARCH_DETIAL = BASE_URL_2 + "/search/Post_Search_Info";


    /**
     * 收藏
     * *********************************************************************************************
     */
    public final static String _COLLECTION = BASE_URL_3 + "/collection";

    // 收藏游记
    public final static String COLLECTION = _COLLECTION + "/Post_Collecion";

    // 取消收藏游记
    public final static String UN_COLLECTION = _COLLECTION + "/Post_Collecion_Cancel";

    // 获取收藏状态
    public final static String COLLECTION_STATE = _COLLECTION + "/Get_Bool_Collecion";

    // 获取用户收藏游记列表
    public final static String GET_USER_COLLECT_LIST= _COLLECTION+"/my";

}
